package com.bifrost.model.ro;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * @author  wqhe
 */
@Data
@ApiModel("促销活动新增模板")
public class PromotionRO implements Serializable {
    @NotBlank(message = "促销活动开始时间不可以为空")
    @ApiModelProperty(name = "startTime" , value = "促销活动开始时间")
    @Valid
    private String startTime;
    @NotBlank(message = "促销活动结束时间不可以为空")
    @ApiModelProperty(name = "endTime" , value = "促销活动结束时间")
    @Valid
    private String endTime;
    @NotBlank(message = "促销活动类型不可以为空")
    @ApiModelProperty(name = "type" , value = "促销活动类型")
    @Valid
    private String type;
    @NotBlank(message = "促销活动名称不可以为空")
    @ApiModelProperty(name = "description" , value = "促销活动名称")
    @Valid
    private String description;
    @Valid
    @NotNull
    private List<PromotionSkuRO> promotionSkuROs;
    @ApiModelProperty(name = "merchantId" , value = "门店Id")
    private Long merchantId;

    public Long getMerchantId() {
        return merchantId;
    }

    public void setMerchantId(Long merchantId) {
        this.merchantId = merchantId;
    }

    public List<PromotionSkuRO> getPromotionSkuROs() {
        return promotionSkuROs;
    }

    public void setPromotionSkuROs(List<PromotionSkuRO> promotionSkuROs) {
        this.promotionSkuROs = promotionSkuROs;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getStartTime() {

        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }
}
